/*
 * redmicro all Copyright (c)
 */

/**
 * Created by seeker910 on 2015/5/28.
 */
Rsd.define('Rsd.Faith.pages.InfoWuYeGongSiListPage', {
    extend: 'Rsd.Faith.pages.ListPage',
    requires: [],
    xtype: 'list-wuyegongsi',
    border: false,
    tabTitle: '物业公司列表',
    gridColumns:[
        {
            "text": "序号",
            "xtype": "index",
            "width": 40
        },
        {
            xtype:'template',
            "name": "MingCheng",
            "text": "名称",
            "width": 150,
            "formatString":'#=MingCheng=#(#=BianHao=#)',
            "nobr": true
        },
        {
            "name": "FaRenDaiBiao",
            "text": "法人代表",
            "width": 50,
            "nobr": true
        },
        {
            "name": "LianXiRen",
            "text": "联系人",
            "width": 50,
            "nobr": true
        },
        {
            "name": "LianXiDianHua",
            "text": "联系电话",
            "width": 50,
            "nobr": true
        },
        {
            "name": "ZuZhiJiGouDaiMa",
            "text": "组织机构代码",
            "width": 50,
            "nobr": true
        },
        {
            "name": "DiZhi",
            "text": "地址",
            "width": 150,
            "nobr": true
        },
        {
            "name": "Remark",
            "text": "备注",
            "width": 100,
            "nobr": true
        }
    ],
    formFields: [
        {
            "name": "MingCheng",
            "label": {
                "content": "名称",
                "width": 80
            },
            "xtype": "text"
        },
        {
            "name": "FaRenDaiBiao",
            "label": {
                "content": "法人代表",
                "width": 80
            },
            "xtype": "text"
        },
        {
            "name": "LianXiRen",
            "label": {
                "content": "联系人",
                "width": 80
            },
            "xtype": "text"
        },
        {
            "name": "LianXiDianHua",
            "label": {
                "content": "联系电话",
                "width": 80
            },
            "xtype": "text"
        },

        {
            "name": "ZuZhiJiGouDaiMa",
            "label": {
                "content": "组织机构代码",
                "width": 80
            },
            "xtype": "text"
        },
        {
            "name": "DiZhi",
            "label": {
                "content": "地址",
                "width": 80
            },
            "xtype": "text"
        },

        {
            "name": "Remark",
            "label": {
                "content": "备注",
                "width": 80
            },
            "xtype": "text"
        }
    ],
    titleField:'mingcheng',
    newButton:{visible:true,text:'添加物业公司'},
    modelType:'InfoWuYeGongSiBiaoModel',
    /*
    * */
    constructor: function (config) {
        config = config || {};
        Rsd.apply(this, config);
    }
});
